package com.example.aiquestions.mapper;

import com.example.aiquestions.entity.Paper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface PaperMapper {
    int save(Paper paper);
    
    int update(Paper paper);
    
    int delete(@Param("paperId") Long paperId);
    
    Paper getById(@Param("paperId") Long paperId);
    
    List<Paper> getList(@Param("userId") Long userId, @Param("subjectId") Long subjectId);
}
